<%@ page import="dex.micros_gdc.Overtime" %>

<g:javascript>
	$(document).ready(function()
	{
	  $("#otdatepicker").datepicker({dateFormat: 'mm/dd/yy'});
	})
</g:javascript>

<div class="fieldcontain ${hasErrors(bean: overtimeInstance, field: 'teamMember', 'error')} required">
	<label for="teamMember">
		<g:message code="overtime.teamMember.label" default="Team Member" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="teamMember" from="${teamResources}" value="${overtimeInstance?.teamMember}" noSelection="['':'Please select...']" maxLength="60" valueMessagePrefix="overtime.teamMember"/>
</div>

<div class="fieldcontain ${hasErrors(bean: overtimeInstance, field: 'otDate', 'error')} required">
	<label for="otDate">
		<g:message code="overtime.otDate.label" default="OT Date" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="otDateTemp" id="otdatepicker" value="${otDateTemp}" readonly="true" required=""/>
</div>

<div class="fieldcontain ${hasErrors(bean: overtimeInstance, field: 'otHour', 'error')} required">
	<label for="otHour">
		<g:message code="overtime.otHour.label" default="OT Hour" />
		<span class="required-indicator">*</span>
	</label>
	<g:field name="otHour" type="number" value="${overtimeInstance.otHour}" required="" min="0" max="24"/>
</div>

<div class="fieldcontain ${hasErrors(bean: overtimeInstance, field: 'comments', 'error')} ">
	<label for="comments">
		<g:message code="overtime.comments.label" default="Comments" />

	</label>
	<g:textArea name="comments" value="${overtimeInstance?.comments}"  maxLength="254"/>
</div>

<div class="fieldcontain ${hasErrors(bean: overtimeInstance, field: 'closedFlag', 'error')} required">
	<label for="closedFlag">
		<g:message code="overtime.closedFlag.label" default="Closed Flag" />
		<span class="required-indicator">*</span>
	</label>
	<g:select name="closedFlag" from="${overtimeInstance.constraints.closedFlag.inList}" required="" value="${overtimeInstance?.closedFlag}" valueMessagePrefix="overtime.closedFlag"/>
</div>

